package ipdesk.model.user.action;

import com.opensymphony.xwork2.ActionSupport;
/*import com.opensymphony.xwork2.ActionContext;

import java.util.Map;
import java.util.HashMap;
import java.util.List;
import java.util.ArrayList;

import ipdesk.model.user.bean.UserBean;*/

public class UserRegFormAction extends ActionSupport
{
	/*
	private List<UserBean> listEmailDomain;
	private List<String> listPhone;
	private List<UserBean> listOrg;
	private List<UserBean> listDesk;
	private List<UserBean> listAuth;
	*/
	public String execute() throws Exception
	{
		
		/*listEmailDomain = new ArrayList<UserBean>();
		listPhone = new ArrayList<String>();
		listOrg = new ArrayList<UserBean>();
		listDesk = new ArrayList<UserBean>();
		listAuth = new ArrayList<UserBean>();
		
		// 이메일 도메인.
		listEmailDomain.add(new UserBean("direct", "== 직접 입력=="));
		listEmailDomain.add(new UserBean("naver.com", "naver.com"));
		listEmailDomain.add(new UserBean("daum.net", "daum.net"));
		listEmailDomain.add(new UserBean("nate.net", "nate.com"));
		listEmailDomain.add(new UserBean("yahoo.net", "yahoo.co.kr"));
		
		
		// 휴대폰 번호 앞자리 목록
		listPhone.add("010");
		listPhone.add("011");
		listPhone.add("016");
		listPhone.add("017");
		listPhone.add("018");
		listPhone.add("019");
		
		
		// 소속.
		listOrg.add(new UserBean("KIPRA", "KIPRA"));
		listOrg.add(new UserBean("KIPO", "KIPO"));
		listOrg.add(new UserBean("KOTRA", "KOTRA"));
		listOrg.add(new UserBean("etc", "기타"));
		
		// 데스크.
		listDesk.add(new UserBean("DESK101", "BEIJING"));
		listDesk.add(new UserBean("DESK102", "SHANGHAI"));
		listDesk.add(new UserBean("DESK103", "GUANGZHOU"));
		listDesk.add(new UserBean("DESK104", "QINGDAO"));
		listDesk.add(new UserBean("DESK105", "SHENYANG"));
		listDesk.add(new UserBean("DESK106", "BANGKOK"));
		listDesk.add(new UserBean("DESK107", "HANOI"));
		listDesk.add(new UserBean("DESK108", "HOCHIMINH"));
		listDesk.add(new UserBean("DESK109", "WASHINGTON"));
		
		
		// 권한.
		listAuth.add(new UserBean("CONSULTANT", "컨설턴트"));
		listAuth.add(new UserBean("ADMIN", "관리자"));
		
		
		// map객체를 세션에 저장한다.
		ActionContext context = ActionContext.getContext();
		Map session = (Map)context.getSession();
		session.put("listEmailDomain", listEmailDomain);
		session.put("listPhone1", listPhone);
		session.put("listOrg", listOrg);
		session.put("listAuth", listAuth);
		session.put("listDesk", listDesk);
		
		context.setSession(session);*/
		
		return SUCCESS;
	}
}
